﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ObTookit
{
    /// <summary>
    /// 自动代码实体类
    /// </summary>
    public class AutoObject
    {
        #region Database
        private string dbName;
        /// <summary>
        /// 数据库名称
        /// </summary>
        public string DbName
        {
            get { return dbName; }
            set { dbName = value; }
        }

        private string dbAlias;

        public string DbAlias
        {
            get { return dbAlias; }
            set { dbAlias = value; }
        }

        private string tbName;
        /// <summary>
        /// 表名
        /// </summary>
        public string TbName
        {
            get { return tbName; }
            set { tbName = value; }
        }

        private string tbDescri;
        /// <summary>
        /// 表描述
        /// </summary>
        public string TbDescri
        {
            get { return tbDescri; }
            set { tbDescri = value; }
        }
        #endregion 

        #region NameSpace
        private string omNS;

        public string OmNS
        {
            get { return omNS; }
            set { omNS = value; }
        }
        private string qryNS;

        public string QryNS
        {
            get { return qryNS; }
            set { qryNS = value; }
        }
        private string permitNS;

        public string PermitNS
        {
            get { return permitNS; }
            set { permitNS = value; }
        }

        private string daNS;

        public string DaNS
        {
            get { return daNS; }
            set { daNS = value; }
        }
        private string lgNS;

        public string LgNS
        {
            get { return lgNS; }
            set { lgNS = value; }
        }

        private string baseNS;

        public string BaseNS
        {
            get { return baseNS; }
            set { baseNS = value; }
        }

        private string servNS;

        public string ServNS
        {
            get { return servNS; }
            set { servNS = value; }
        }
        private string apiNS;

        public string ApiNS
        {
            get { return apiNS; }
            set { apiNS = value; }
        }

        private string ctrlNS;

        public string CtrlNS
        {
            get { return ctrlNS; }
            set { ctrlNS = value; }
        }
        private string viewNS;

        public string ViewNS
        {
            get { return viewNS; }
            set { viewNS = value; }
        }

        #endregion 

        #region CLASS
        private string baseSession;

        public string BaseSession
        {
            get { return baseSession; }
            set { baseSession = value; }
        }

        private string clsName;

        public string ClsName
        {
            get { return clsName; }
            set { clsName = value; }
        }

        private string idName;

        public string IdName
        {
            get { return idName; }
            set { idName = value; }
        }

        private string lgBaseCls;

        public string LgBaseCls
        {
            get { return lgBaseCls; }
            set { lgBaseCls = value; }
        }

        private string servBaseCls;

        public string ServBaseCls
        {
            get { return servBaseCls; }
            set { servBaseCls = value; }
        }

        private string apiBaseCls;

        public string ApiBaseCls
        {
            get { return apiBaseCls; }
            set { apiBaseCls = value; }
        }

        private string ctrlBaseCls;

        public string CtrlBaseCls
        {
            get { return ctrlBaseCls; }
            set { ctrlBaseCls = value; }
        }
        #endregion 

        private string apiPrefix;

        public string ApiPrefix
        {
            get { return apiPrefix; }
            set { apiPrefix = value; }
        }

        #region Special
        private bool isTree;

        private bool hasEnum;
        #endregion
    }
}
